<nz-table #basicTable [nzData]="data" nzSize="small" [nzPageSize]="20"
          nzPaginationPosition="top" nzOuterBordered="true"
>
  <thead>
  <tr>
    <th nzWidth="100px" [nzFilters]="filtersName" [nzFilterFn]="filterNameFn" [nzSortFn]="sortNameFn">名称</th>
    <th nzWidth="80px" [nzSortFn]="sortLevelFn">等级</th>
    <th nzWidth="150px" [nzFilters]="filtersStat3" [nzFilterFn]="filterStat3Fn" [nzFilterMultiple]="true"
        [nzSortFn]="sortStat3Fn">随机属性1
    </th>
    <th nzWidth="100px">锁定状态</th>
    <th nzWidth="100px" [nzSortFn]="sortPriceFn">价值</th>
    <th>操作</th>
  </tr>
  </thead>
  <tbody>
  <tr *ngFor="let data of basicTable.data; let i = index">
    <td>
      <span [ngStyle]="findColor(data)">{{ data['名称'] }}</span>
    </td>
    <td>{{ data['等级']  }}</td>
    <td>{{ data['随机属性链表'][0] | secondStat }}</td>
    <td>
      <nz-switch [ngModel]="data['锁定状态'] === 0" (ngModelChange)="changeLock(data)"></nz-switch>
    </td>
    <td>{{ data['价值'] | numberWithComma }}</td>
    <td>
      <button nz-button nzType="primary" nzDanger (click)="sell(data)" nzSize="small">出售</button>
    </td>
  </tr>
  </tbody>
</nz-table>
